<?php
	
	session_start();
	 
	require_once 'controller/MasterController.php';
	require_once 'model/Database.php';
	require_once 'model/DBConfig.php';
	
	$title = "Login";
	//Skapar ny databas.
	$db = new Database();
	$config = new DBConfig();
	$db->Connect($config);
	$instance = new MasterController();
	$body = $instance->DoControll($db);
	//Stänger databasen.
	$db->Close();
	
?>

<!doctype html>
<html lang="sv">
	<head>
		<meta charset="utf-8" />
    	<title><?php echo $title;?></title>
   		<link rel="stylesheet" href="css/style.css">
  	</head>
	<body>
	<div id="content">
		<?php
			echo $body;
		?>
	</div>
	</body>
</html>